<%@page import="com.entity.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="top.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  <head>
    <title>HD项目管理系统</title>
    <style type="text/css">
    	.f{
    		float:right;
    	}
    </style>
  </head>
  
  <body>
  	
  	<%
  		List<Project> projects=(List<Project>)request.getAttribute("projects");
  		
  	 %>
  
    <div class="container" >
	  <div class="row">
		<div class="container" style="width:800px">
          
          	<div class="page-header">
          		<h2>项目列表</h2>
          	</div>
			
          	<a href="createproject.jspx" class="btn btn-success"><i class="icon-plus icon-white"></i>添加一个新项目</a>

			<%
				for(Project p:projects){
			 %>
			
		    <ul style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:25px" class="breadcrumb">
				<li class="active">
					<a href="project.jspx?id=<%=p.getId()%>"><i class="icon-th"></i><%=p.getName() %></a>
				</li>
				<a href="editproject.jspx?id=<%=p.getId()%>" class="btn btn-info f" style="margin-top:-5px">编辑</a>
			</ul>
			
			<div class="wall">
				<%=p.getDesc() %>
			</div>
				
			<%
				}
			 %>
			
		</div>
		
	  </div>
	</div>
	
	
  </body>
</html>
